cmake_minimum_required(VERSION 3.15)
project(quickjsdemo)
set(CMAKE_CXX_STANDARD 17)
set(QUICKJSDIR /data/work/cppproject/quickjs)
set(SKIADIR /data/sources/skia)
include_directories(${SKIADIR})
link_directories(${QUICKJSDIR})
link_directories(${SKIADIR})

link_libraries(quickjs)
link_libraries(${SKIADIR}/out/Shared/libskia.a)
link_libraries(SDL2 SDL2main pthread GL fontconfig freetype)
#add_executable(quickjsdemo main.cpp DtfModule.cpp DtfModule.h)
add_executable(quickjsdemo main.cpp DtfModule.cpp DtfModule.h)
if(UNIX)
    target_link_libraries(quickjsdemo ${CMAKE_DL_LIBS} m )
endif()